<%@page import="com.sjyy.areadict.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>

	<input type="hidden" id="areadictId" name="areadictId" value="${areadict.areadictId}"/>

	<tr>	
		<td class="tdLabel">
			<span class="required">*</span>名称:
		</td>		
		<td>
		<form:input path="areaName" id="areaName" cssClass="required " maxlength="32" />
		<font color='red'><form:errors path="areaName"/></font>
		</td>
	</tr>	
	
	<tr>	
		<td class="tdLabel">
			父区域:
		</td>		
		<td>
		<select class="form-field col-2" value="${areadict.parentAreaId}" name="parentAreaId" id="parentAreaId">
					<c:forEach items="${areaIdList}" var="areaIdListItem">
					<option value="${areaIdListItem.key }" 
						<c:if test="${areaIdListItem.key eq areadict.parentAreaId}">
							selected="selected"
						</c:if>
						>${areaIdListItem.value }
						</option>
						</c:forEach>
		</select>
		<font color='red'><form:errors path="parentAreaId"/></font>
		</td>
	</tr>	
	
	<tr>	
		<td class="tdLabel">
			排序:
		</td>		
		<td>
		<form:input path="areaIndex" id="areaIndex" cssClass="validate-integer max-value-2147483647" maxlength="10" />
		<font color='red'><form:errors path="areaIndex"/></font>
		</td>
	</tr>	
	
	<tr>	
		<td class="tdLabel">
			级别:
		</td>		
		<td>
		<select class="form-field col-2" value="${areadict.municipality}" name="municipality" id="municipality">
		<option value="1" <c:if test="${areadict.municipality == 1}"> selected </c:if>>省</option>
		<option value="2" <c:if test="${areadict.municipality == 2}"> selected </c:if>>城市</option>
		<option value="3" <c:if test="${areadict.municipality == 3}"> selected </c:if>>区域</option>
		</select>
		<font color='red'><form:errors path="municipality"/></font>
		</td>
	</tr>	
	
		